<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
<title>Student detail</title>
</head>
<body>
  <h1>Student detail</h1>
  <div th:if="${msg}" th:text="${msg}" style="color:red;">error message!</div>
  <table th:if="${student}" border="1" width="100%">
    <tr>
      <th>Property</th>
      <th>Value</th>
    </tr>
    <tr>
      <td>Id</td>
      <td th:text="${student.id}">student id</td>
    </tr>
    <tr>
      <td>Student No.</td>
      <td th:text="${student.sno}"></td>
    </tr>
    <tr>
      <td>Firstname</td>
      <td th:text="${student.firstname}"></td>
    </tr>
    <tr>
      <td>Lastname</td>
      <td th:text="${student.lastname}"></td>
    </tr>
    <tr>
      <td>Gender</td>
      <td th:text="${student.gender}"></td>
    </tr>
    <tr>
      <td>Birthday</td>
      <td th:text="${student.birthday}"></td>
    </tr>
  </table>
</body>
</html>